﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using PiscoSourDominio;
using PiscoSourPersistencia;  

namespace PiscoSourSOAPServices   
{
    public class Ordenes : IOrdenes                    
    {    
        
        private OrdenDAO dao = new OrdenDAO();    

        public string InsertarOrden(Orden objOrden)
        {
            return dao.InsertarOrdenes(objOrden);   
        }

        public string EliminarOrden(Orden objOrden)
        {
            return dao.EliminarOrdenes(objOrden);
        }  

        public string ActualizarOrden(Orden objOrden)
        {
            return dao.ActualizarOrdenes(objOrden);
        }

        public List<Orden> ListaOrdenes()     
        {
            return dao.ListarOrdenes().ToList();       
        }

        public List<Orden> ListarOrdenes()
        {
            throw new NotImplementedException();
        }
    }
}
